/*
 * Copyright (C) Antonio Ramon Morcillo
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package soft.xitxarello.su.fragments;

import org.holoeverywhere.LayoutInflater;
import org.holoeverywhere.app.Fragment;

import soft.xitxarello.su.R;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;

/**
 * A fragment that displays no selected uninstallable application.
 * 
 * @see org.holoeverywhere.app.Fragment
 */
public class EmptyDetailFragment extends Fragment {

    /**
     * Overrides a superclass method. Called to have the fragment instantiate
     * its user interface view.
     * 
     * @param inflater The LayoutInflater object that can be used to inflate any
     *            views in the fragment.
     * @param container If non-null, this is the parent view that the fragment's
     *            UI should be attached to. The fragment should not add the view
     *            itself, but this can be used to generate the LayoutParams of
     *            the view.
     * @param savedInstanceState If non-null, this fragment is being
     *            re-constructed from a previous saved state as given here.
     */
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

        // inflate /res/layout/empty_detail_item.xml resource.
        View view = inflater.inflate(R.layout.empty_detail_item, container, false);

        return view;
    }

}
